<?php 

/**
* 汽车类
*/
class Car 
{
	public $name;
	public $color;
	public $lenght;
	//我是构造函数，做一些初始化工作
	public function __construct($name="小奥拓",$color="紫色")
	{
		$this->name = $name;
		$this->color= $color;
	}
	public function run()
	{
		echo $this->name."可以跑";
	}
	public function zai()
	{
		echo "可以载人";
	}

	public function __destruct()
	{
		echo "我死了";
	}
}











 ?>